import 'package:flutter/material.dart';

class AppUtil {
  /// 获取images文件夹图片
  static Image getImage20(path) {
    return Image.asset(path, width: 20.0, height: 20.0);
  }
  /// 获取images文件夹图片
  static Image getImage50(path) {
    return Image.asset(path, width: 50.0, height: 50.0);
  }

  /// 获得系统时间 yyyy-mm-dd HH:MM:SS
  static String getSystemTime() {
    DateTime today = DateTime.now();
    return "${today.year.toString()}-${today.month.toString().padLeft(2, '0')}-${today.day.toString().padLeft(2, '0')}"
        " ${today.hour.toString().padLeft(2, '0')}:${today.minute.toString().padLeft(2, '0')}:${today.second.toString().padLeft(2, '0')}";
  }
}
